﻿@model AgendaDoEstudante.Models.Item

@{
    ViewBag.Title = "Create";
}

<h2>ADICIONAR ITEM</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Item</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Feito)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Feito)
            @Html.ValidationMessageFor(model => model.Feito)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ListaId)
            @Html.ValidationMessageFor(model => model.ListaId)
        </div>

        <p>
            <input type="submit" value="Adicionar Item" />
        </p>
    </fieldset>
}

<ul class="phrp">
    <li>@Html.ActionLink("Voltar", "Details", "Lista", new { id = Model.ListaId }, null)</li>
</ul>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
